import {Component, Input, OnInit} from '@angular/core';
import {DynamicComponent} from '../../..';

@Component({
  selector: 'ng-tools-badge',
  templateUrl: './badge.component.html',
  styleUrls: ['./badge.component.scss']
})
export class BadgeComponent implements OnInit, DynamicComponent {
  @Input() cssClass: string;
  @Input() text: string;
  dynamic: true;

  set data(values) {
    this.cssClass = values.cssClass;
    this.text = values.text;
  }

  constructor() {
  }

  ngOnInit() {
  }
}
